package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.Page;
import com.ruoyi.system.domain.MessReceive;
import com.ruoyi.system.domain.MessSend;

import java.util.List;

/**
 * APP收发消息Service接口
 * 
 * @author wp
 * @date 2023-08-10
 */
public interface IMessReceiveService extends IService<MessReceive> {

    public List<MessReceive> selectList(MessReceive messReceive);

    /**
     * 根据发送id获取消息接收信息
     * @param sendId
     * @return
     */
    public List<MessReceive> getListBySendId(Long sendId);

    public List<MessReceive> appSelectList();

    /**
     * 获取消息详情
     * @param id
     * @return
     */
    public MessSend getDetail(Long id);

    /**
     * 获取用户未读消息数量
     * @param receiveUserId
     * @return
     */
    public int unreadMessageCount(Long receiveUserId);

}
